import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'lib-flexible' // 这是 适配rem引入的 插件
// 引入自己下载的 字体图标 css：
import './assets/font/iconfont.css'
import './assets/css/base.css'

import {
  Tabbar, TabbarItem, Icon, Swipe, SwipeItem, Grid, GridItem, Field, PullRefresh, NavBar, Popup, GoodsAction,
  GoodsActionIcon, GoodsActionButton, Sku, Card, Stepper, SubmitBar, SwipeCell, Button, Checkbox, CheckboxGroup,
  Empty, CellGroup, NoticeBar, ContactCard, ContactList, ContactEdit, AddressList, AddressEdit, Search, Lazyload,
  Sidebar, SidebarItem, Overlay,Cell
} from 'vant' // 这是按需引入的一些模块

// 导入 Loading 组件
import loading from './plugins/Loading'
// 使用：
Vue.use(loading)


// 使用：
Vue.use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(Field)
  .use(PullRefresh)
  .use(NavBar)
  .use(Popup)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Sku)
  .use(Card)
  .use(Stepper)
  .use(SubmitBar)
  .use(SwipeCell)
  .use(Button)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(Empty)
  .use(CellGroup)
  .use(NoticeBar)
  .use(ContactCard)
  .use(ContactList)
  .use(ContactEdit)
  .use(AddressList) 
  .use(AddressEdit) 
  .use(Search) 
  .use(Sidebar) 
  .use(SidebarItem) 
  .use(Overlay) 
  .use(Cell)






// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  loading:'/load.jpg',
  preload:'100%' // 预加载高度的比例
})










Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
